Woocommerce\Pagarme\Helper\Utils A

Total Complexity 60
Dependencies 3
Dependents 25
Total lines 585
Lines of code 251
Logical lines of code 99
Comment lines 230
Methods 32
Properties 0

Methods 32

Method Rating Maintainability Complexity Lines of code
build_customer_phones_from_order()
S
51 3 30
build_document_from_order()
S
58 3 18
sanitize()
S
64 4 9
rm_tags()
S
65 4 9
build_customer_shipping_from_wc_order()
S
52 2 23
is_request_ajax()
S
71 3 5
get_value_by()
S
70 3 6
convert_date()
S
69 3 6
error_server_json()
S
61 2 13
request()
S
68 2 7
normalize_price()
S
67 2 8
get_json_post_data()
S
74 2 4
calc_percentage()
S
68 2 7
get_order_by_meta_value()
S
61 1 15
format_order_price_to_view()
S
69 2 7
format_desnormalized_order_price()
S
69 2 7
format_order_price_with_currency_symbol()
S
69 2 6
format_order_price()
S
70 2 6
format_phone_number()
S
67 2 7
isCheckoutRequest()
S
71 2 6
build_customer_address_from_order()
S
60 1 12
post()
S
78 1 3
format_document()
S
78 1 3
get_component()
S
78 1 3
str_to_float()
S
78 1 3
add_prefix()
S
79 1 3
get_site_url()
S
78 1 3
get_admin_url()
S
78 1 3
get_phone_country_code()
S
65 1 9
server()
S
74 1 4
get()
S
78 1 3
snakeToPascalCase()
S
77 1 3